#ifndef __FIFO__
#define __FIFO__

#include "def.h"

typedef struct {
    PBYTE pbBuffer;
    DWORD dwWrite;
    DWORD dwRead;
    DWORD dwSize;
    DWORD dwFree;
} FIFO8, *PFIFO8;

VOID Fifo8Init(PFIFO8 pFifo, DWORD dwSize, PBYTE pbBuffer);
STATUS Fifo8Put(PFIFO8 pFifo, BYTE bData);
STATUS Fifo8Get(PFIFO8 pFifo, PBYTE pbData);
DWORD Fifo8Status(PFIFO8 pFifo);

#endif
